out_path=/lib/modules/`uname -r`/build

MODULE_NAME := bd
#$(MODULE_NAME)-objs:= driver0.o 
$(MODULE_NAME)-objs:= block_driver.o 

obj-m :=bd.o

#SRCS = driver0.c 
SRCS = block_driver.c 

OBJS = $(SRCS:.c=.o)

ccflags-y += -g

default:
	$(MAKE) -C $(out_path) M=`pwd` modules
clean:
	$(MAKE) -C $(out_path) M=`pwd` clean
	$(RM) Module.markers modules.order

